GET /api/agent/quotes/{id}
Fetch one quote by its Xero GUID (externalId) or its quote number (exact match as stored). Quote numbers are not unique in Xero: a number lookup prefers a non-DELETED quote, then the most recently updated one; a quote that exists only as DELETED is still returned with status: "DELETED". Returns the list shape plus terms and lineItems. A quote whose contact is sensitive returns 404 (existence-hiding) unless the key carries READ_SENSITIVE. Requires the READ_QUOTES scope.
Auth
- Required scope:
READ_QUOTES - Header:
Authorization: Bearer cr_live_<prefix>_<secret>
Query parameters
| Name | Type | Required | Notes |
|---|---|---|---|
id | string | yes | Xero QuoteID (GUID) or QuoteNumber. |
Responses
200 — The quote with terms and line items.
Body: QuoteDrillResponse
| Field | Type | Required | Notes |
|---|---|---|---|
quote | QuoteDrill | yes | |
redactedItemCount | integer | yes | |
billingAlert | BillingAlert | no | |
xeroAlert | XeroAlert | no |
401 — Unauthorized
Body: ErrorResponse
| Field | Type | Required | Notes |
|---|---|---|---|
error | string | yes |
403 — The key lacks READ_QUOTES (insufficient_scope).
Body: ErrorResponse
| Field | Type | Required | Notes |
|---|---|---|---|
error | string | yes |
404 — Not found, or sensitive without READ_SENSITIVE.
429 — Rate-limited (per-minute burst) or query credits exhausted. Credits return individually on a rolling 5h window — retry after Retry-After seconds for one more call.
Body:
any
Response headers
Every successful response carries X-CashRunway-Subscription, X-CashRunway-Plan, X-CashRunway-Quota-Remaining, and X-CashRunway-Quota-Reset. Trialing subscriptions also include X-CashRunway-Trial-Days-Remaining. See the overview for details.